<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue Template</title>
    <style>
        .active {
            color: red;
        }

        .line {
            color: #000;
        }
    </style>
</head>
<body>

<div id="app">

    <!--    <h2 v-bind:class="{active:isActive}">{{message}}</h2>-->
    <!--    <button v-on:click="btnClick">点击我</button>-->

    <h2>{{message}}</h2>
    <h2>{{fullName}}</h2>
    <ul>
        <li v-for="item in movies">{{item}}</li>
    </ul>

</div>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    const app = new Vue({
        el: "#app",
        data: {
            message: "Hello Frans !",
            isActive: true,
            isLine: true,
            movies: ['AAAA', 'BBBBB', 'CCCCC']
        },
        methods: {
            // btnClick: function () {
            //     this.isActive = !this.isActive;
            // }
        },
        computed: {
            fullName: function () {
                return this.message;
            }
        }
    });
</script>

</body>
</html>